import { ref, computed,reactive } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('counter', () => {
  const count = ref(0)
  const doubleCount = computed(() => count.value * 2)
  function increment() {
    count.value++
  }
  var login=reactive({
    "userId": null,
    "userName": "",
    "loginName": "",
    "loginPwd": "",
    "roleName": "",
    "token": ""
})



const trace=reactive({
/// <summary>
/// 主键Id
/// </summary>
"Id":null,
/// <summary>
/// 商品名称
/// </summary>
"CommodityName":"", 
/// <summary>
/// 生产批次
/// </summary>
"ProductionBatch":"",
/// <summary>
/// 保质期(天)
/// </summary>
"ShelfLife":null ,
/// <summary>
/// 生产许可证号
/// </summary>
"LicenseNumber":"",
/// <summary>
/// 生产企业
/// </summary>
"ProductionEnterprises":"",
/// <summary>
/// 封面图
/// </summary>
"CoverImage":"",
/// <summary>
/// 信息完善度
/// </summary>
"InformationPerfection":"",
/// <summary>
/// 产品资质报告
/// </summary>
"ProductQualifications":""

})
  return { count, doubleCount, increment,login,trace }
},{persist:true})
